export default abstract class RecorderAdapter {

    protected _recorder: any
    constructor(r: any) {
        this._recorder = r;
    }
    onStart(func: Function) {
        this._recorder.onStart(func)
    }
    onStop(func: Function) {
        this._recorder.onStop(func)
    }
    onResume(func: Function) {
        this._recorder.onResume(func)
    }
    onPause(func: Function) {
        this._recorder.onPause(func)
    }
    onError(func: Function) {
        this._recorder.onError(func)
    }

    clipVideo(obj: any) {
        this._recorder.clipVideo(obj)
    }

    start(obj: any) {
        this._recorder.start(obj)
    }

    stop() {
        this._recorder.stop()
    }
    resume() {
        this._recorder.resume()
    }

    pause() {
        this._recorder.pause()
    }

    abstract publish(param?: any);
}
